Optimal. Leaf size=353 \[ \frac{(a+b x)^{m+1} (c+d x)^{-m-2} \left (a^2 d^2 f^2 \left (m^2+5 m+6\right )-2 a b d f (m+3) (c f (m+1)+d e)+b^2 \left (c^2 f^2 \left (m^2+3 m+2\right )+2 c d e f (m+1)+2 d^2 e^2\right )\right )}{b d^2 (m+2) (m+3) (b c-a d)^2}+\frac{(a+b x)^{m+1} (c+d x)^{-m-1} \left (a^2 d^2 f^2 \left (m^2+5 m+6\right )-2 a b d f (m+3) (c f (m+1)+d e)+b^2 \left (c^2 f^2 \left (m^2+3 m+2\right )+2 c d e f (m+1)+2 d^2 e^2\right )\right )}{d^2 (m+1) (m+2) (m+3) (b c-a d)^3}-\frac{(a+b x)^{m+1} (d e-c f) (c+d x)^{-m-3} (a d f (m+3)-b (c f (m+2)+d e))}{b d^2 (m+3) (b c-a d)}-\frac{f (e+f x) (a+b x)^{m+1} (c+d x)^{-m-3}}{b d} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.871428, antiderivative size = 351, normalized size of antiderivative = 0.99, number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154 \[ \frac{(a+b x)^{m+1} (c+d x)^{-m-2} \left (a^2 d^2 f^2 \left (m^2+5 m+6\right )-2 a b d f (m+3) (c f (m+1)+d e)+b^2 \left (c^2 f^2 \left (m^2+3 m+2\right )+2 c d e f (m+1)+2 d^2 e^2\right )\right )}{b d^2 (m+2) (m+3) (b c-a d)^2}+\frac{(a+b x)^{m+1} (c+d x)^{-m-1} \left (a^2 d^2 f^2 \left (m^2+5 m+6\right )-2 a b d f (m+3) (c f (m+1)+d e)+b^2 \left (c^2 f^2 \left (m^2+3 m+2\right )+2 c d e f (m+1)+2 d^2 e^2\right )\right )}{d^2 (m+1) (m+2) (m+3) (b c-a d)^3}+\frac{(a+b x)^{m+1} (d e-c f) (c+d x)^{-m-3} (-a d f (m+3)+b c f (m+2)+b d e)}{b d^2 (m+3) (b c-a d)}-\frac{f (e+f x) (a+b x)^{m+1} (c+d x)^{-m-3}}{b d} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^m*(c + d*x)^(-4 - m)*(e + f*x)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 142.791, size = 303, normalized size = 0.86 \[ \frac{\left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m - 1} \left (2 b d \left (- b d e^{2} + f \left (- a c f + e \left (a d \left (m + 3\right ) - b c \left (m + 1\right )\right )\right )\right ) - f^{2} \left (m + 2\right ) \left (a d - b c\right ) \left (a d \left (m + 3\right ) - b c \left (m + 1\right )\right )\right )}{d^{2} \left (m + 1\right ) \left (m + 2\right ) \left (m + 3\right ) \left (a d - b c\right )^{3}} - \frac{f \left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m - 3} \left (e + f x\right )}{b d} - \frac{\left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m - 3} \left (c f - d e\right ) \left (a d f m + 3 a d f - b c f m - 2 b c f - b d e\right )}{b d^{2} \left (m + 3\right ) \left (a d - b c\right )} - \frac{\left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m - 2} \left (2 b d \left (- b d e^{2} + f \left (- a c f + e \left (a d \left (m + 3\right ) - b c \left (m + 1\right )\right )\right )\right ) - f^{2} \left (m + 2\right ) \left (a d - b c\right ) \left (a d \left (m + 3\right ) - b c \left (m + 1\right )\right )\right )}{b d^{2} \left (m + 2\right ) \left (m + 3\right ) \left (a d - b c\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**m*(d*x+c)**(-4-m)*(f*x+e)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.743083, size = 285, normalized size = 0.81 \[ \frac{(a+b x)^{m+1} (c+d x)^{-m-3} \left (a^2 \left (2 c^2 f^2+2 c d f (e (m+1)+f (m+3) x)+d^2 \left (e^2 \left (m^2+3 m+2\right )+2 e f \left (m^2+4 m+3\right ) x+f^2 \left (m^2+5 m+6\right ) x^2\right )\right )-2 a b \left (c^2 f (e (m+3)+f (m+1) x)+c d \left (e^2 \left (m^2+4 m+3\right )+2 e f \left (m^2+4 m+5\right ) x+f^2 \left (m^2+4 m+3\right ) x^2\right )+d^2 e x (e (m+1)+f (m+3) x)\right )+b^2 \left (c^2 \left (e^2 \left (m^2+5 m+6\right )+2 e f \left (m^2+4 m+3\right ) x+f^2 \left (m^2+3 m+2\right ) x^2\right )+2 c d e x (e (m+3)+f (m+1) x)+2 d^2 e^2 x^2\right )\right )}{(m+1) (m+2) (m+3) (b c-a d)^3} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^m*(c + d*x)^(-4 - m)*(e + f*x)^2,x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.018, size = 741, normalized size = 2.1 \[ -{\frac{ \left ( bx+a \right ) ^{1+m} \left ( dx+c \right ) ^{-3-m} \left ({a}^{2}{d}^{2}{f}^{2}{m}^{2}{x}^{2}-2\,abcd{f}^{2}{m}^{2}{x}^{2}+{b}^{2}{c}^{2}{f}^{2}{m}^{2}{x}^{2}+2\,{a}^{2}{d}^{2}ef{m}^{2}x+5\,{a}^{2}{d}^{2}{f}^{2}m{x}^{2}-4\,abcdef{m}^{2}x-8\,abcd{f}^{2}m{x}^{2}-2\,ab{d}^{2}efm{x}^{2}+2\,{b}^{2}{c}^{2}ef{m}^{2}x+3\,{b}^{2}{c}^{2}{f}^{2}m{x}^{2}+2\,{b}^{2}cdefm{x}^{2}+2\,{a}^{2}cd{f}^{2}mx+{a}^{2}{d}^{2}{e}^{2}{m}^{2}+8\,{a}^{2}{d}^{2}efmx+6\,{a}^{2}{d}^{2}{f}^{2}{x}^{2}-2\,ab{c}^{2}{f}^{2}mx-2\,abcd{e}^{2}{m}^{2}-16\,abcdefmx-6\,abcd{f}^{2}{x}^{2}-2\,ab{d}^{2}{e}^{2}mx-6\,ab{d}^{2}ef{x}^{2}+{b}^{2}{c}^{2}{e}^{2}{m}^{2}+8\,{b}^{2}{c}^{2}efmx+2\,{b}^{2}{c}^{2}{f}^{2}{x}^{2}+2\,{b}^{2}cd{e}^{2}mx+2\,{b}^{2}cdef{x}^{2}+2\,{b}^{2}{d}^{2}{e}^{2}{x}^{2}+2\,{a}^{2}cdefm+6\,{a}^{2}cd{f}^{2}x+3\,{a}^{2}{d}^{2}{e}^{2}m+6\,{a}^{2}{d}^{2}efx-2\,ab{c}^{2}efm-2\,ab{c}^{2}{f}^{2}x-8\,abcd{e}^{2}m-20\,abcdefx-2\,ab{d}^{2}{e}^{2}x+5\,{b}^{2}{c}^{2}{e}^{2}m+6\,{b}^{2}{c}^{2}efx+6\,{b}^{2}cd{e}^{2}x+2\,{a}^{2}{c}^{2}{f}^{2}+2\,{a}^{2}cdef+2\,{a}^{2}{d}^{2}{e}^{2}-6\,ab{c}^{2}ef-6\,abcd{e}^{2}+6\,{b}^{2}{c}^{2}{e}^{2} \right ) }{{a}^{3}{d}^{3}{m}^{3}-3\,{a}^{2}bc{d}^{2}{m}^{3}+3\,a{b}^{2}{c}^{2}d{m}^{3}-{b}^{3}{c}^{3}{m}^{3}+6\,{a}^{3}{d}^{3}{m}^{2}-18\,{a}^{2}bc{d}^{2}{m}^{2}+18\,a{b}^{2}{c}^{2}d{m}^{2}-6\,{b}^{3}{c}^{3}{m}^{2}+11\,{a}^{3}{d}^{3}m-33\,{a}^{2}bc{d}^{2}m+33\,a{b}^{2}{c}^{2}dm-11\,{b}^{3}{c}^{3}m+6\,{a}^{3}{d}^{3}-18\,{a}^{2}bc{d}^{2}+18\,a{b}^{2}{c}^{2}d-6\,{b}^{3}{c}^{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^m*(d*x+c)^(-4-m)*(f*x+e)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (f x + e\right )}^{2}{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m - 4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x + e)^2*(b*x + a)^m*(d*x + c)^(-m - 4),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.25222, size = 1744, normalized size = 4.94 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x + e)^2*(b*x + a)^m*(d*x + c)^(-m - 4),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**m*(d*x+c)**(-4-m)*(f*x+e)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (f x + e\right )}^{2}{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m - 4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x + e)^2*(b*x + a)^m*(d*x + c)^(-m - 4),x, algorithm="giac")
[Out]